package com.niuwa.p2p.dao.business;

import java.util.List;
import java.util.Map;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.business.RePayRecord;

@MyBatisDao
public interface RePayRecordDao {
    int deleteByPrimaryKey(String repayRecordNo);

    int insert(RePayRecord record);

    int insertSelective(RePayRecord record);

    RePayRecord selectByPrimaryKey(String repayRecordNo);

    int updateByPrimaryKeySelective(RePayRecord record);

    int updateByPrimaryKey(RePayRecord record);
    
    List<RePayRecord> getRepayRecordListByProjectNo4App(String projectNo);
    
    /**
     * @Description: 查询还款计划中逾期的期数的实际还款记录，同一期计划还款记录对应多期实际还款记录时汇总
     * add by bwz at 2015年4月14日
     * @param paramMap
     * @return
     * @throws Exception
     */
    public RePayRecord selectRecordByRepaymentId(Map<String,Object> paramMap) throws Exception;
}